home *** CD-ROM | disk | FTP | other *** search
- Path: redstone.interpath.net!mercury!softbase
- From: softbase@mercury.interpath.net (Scott McMahan - Softbase Systems)
- Newsgroups: comp.lang.c
- Subject: Re: Far pointers on BorlandC++
- Date: 4 Mar 1996 13:31:40 GMT
- Organization: Interpath -- Providing Internet access to North Carolina
- Message-ID: <4herbs$pbo@news.interpath.net>
- References: <4h4m5o$fmo@ci.ist.utl.pt>
- NNTP-Posting-Host: mercury.interpath.com
- X-Newsreader: TIN [version 1.2 PL2]
-
- PEDRO NUNO RODRIGUES DA FONSECA (l42571@alfa.ist.utl.pt) wrote:
-
-
- : I would like to know tips for optimizing the use of
- : "far" pointers on Borland C++ and avoiding pROBlems such as
- : corrupting system files .
-
- Generate a Win32 console mode application. For most programs, it looks
- a LOT like a UNIX command line application. You get 4GB of memory, and
- do not have to deal with DOS' old legacy limitations. It's time to
- usher in the "modern" world of 80s 32-bit programming! :) Console mode
- programs have no far pointers. Hopefully in a year or so, near and far
- will join punched cards in the museum of bad computer memories.
-
- :I would also like to know if there
- : is any remote way in wich I can allocate more than 1Mbyte of
- : memory.Everyone I know told me it is impossible but I found
- : it hard to believe that any decent compiler had such a severe
- : restraint.
-
- 1. It is not a restraint in the compiler, it's a restraint
- of the hardware architecture! Borland's OS/2 and Win32
- EXEs can address more than 1MB of memory.
-
- 2. Borland has a Power Pack for DOS that allows DOS
- programs to use DPMI memory. That's how you allocate
- more than 1MB (actually you don't even get 1MB :))
- in old legacy DOS.
-
- Scott
-
-